Optimal. Leaf size=91 \[ -\frac{3}{8} b \sin (a) \text{CosIntegral}\left (b x^2\right )-\frac{3}{8} b \sin (3 a) \text{CosIntegral}\left (3 b x^2\right )-\frac{3}{8} b \cos (a) \text{Si}\left (b x^2\right )-\frac{3}{8} b \cos (3 a) \text{Si}\left (3 b x^2\right )-\frac{3 \cos \left (a+b x^2\right )}{8 x^2}-\frac{\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.201348, antiderivative size = 91, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 6, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {3404, 3380, 3297, 3303, 3299, 3302} \[ -\frac{3}{8} b \sin (a) \text{CosIntegral}\left (b x^2\right )-\frac{3}{8} b \sin (3 a) \text{CosIntegral}\left (3 b x^2\right )-\frac{3}{8} b \cos (a) \text{Si}\left (b x^2\right )-\frac{3}{8} b \cos (3 a) \text{Si}\left (3 b x^2\right )-\frac{3 \cos \left (a+b x^2\right )}{8 x^2}-\frac{\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3404
Rule 3380
Rule 3297
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \frac{\cos ^3\left (a+b x^2\right )}{x^3} \, dx &=\int \left (\frac{3 \cos \left (a+b x^2\right )}{4 x^3}+\frac{\cos \left (3 a+3 b x^2\right )}{4 x^3}\right ) \, dx\\ &=\frac{1}{4} \int \frac{\cos \left (3 a+3 b x^2\right )}{x^3} \, dx+\frac{3}{4} \int \frac{\cos \left (a+b x^2\right )}{x^3} \, dx\\ &=\frac{1}{8} \operatorname{Subst}\left (\int \frac{\cos (3 a+3 b x)}{x^2} \, dx,x,x^2\right )+\frac{3}{8} \operatorname{Subst}\left (\int \frac{\cos (a+b x)}{x^2} \, dx,x,x^2\right )\\ &=-\frac{3 \cos \left (a+b x^2\right )}{8 x^2}-\frac{\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2}-\frac{1}{8} (3 b) \operatorname{Subst}\left (\int \frac{\sin (a+b x)}{x} \, dx,x,x^2\right )-\frac{1}{8} (3 b) \operatorname{Subst}\left (\int \frac{\sin (3 a+3 b x)}{x} \, dx,x,x^2\right )\\ &=-\frac{3 \cos \left (a+b x^2\right )}{8 x^2}-\frac{\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2}-\frac{1}{8} (3 b \cos (a)) \operatorname{Subst}\left (\int \frac{\sin (b x)}{x} \, dx,x,x^2\right )-\frac{1}{8} (3 b \cos (3 a)) \operatorname{Subst}\left (\int \frac{\sin (3 b x)}{x} \, dx,x,x^2\right )-\frac{1}{8} (3 b \sin (a)) \operatorname{Subst}\left (\int \frac{\cos (b x)}{x} \, dx,x,x^2\right )-\frac{1}{8} (3 b \sin (3 a)) \operatorname{Subst}\left (\int \frac{\cos (3 b x)}{x} \, dx,x,x^2\right )\\ &=-\frac{3 \cos \left (a+b x^2\right )}{8 x^2}-\frac{\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2}-\frac{3}{8} b \text{Ci}\left (b x^2\right ) \sin (a)-\frac{3}{8} b \text{Ci}\left (3 b x^2\right ) \sin (3 a)-\frac{3}{8} b \cos (a) \text{Si}\left (b x^2\right )-\frac{3}{8} b \cos (3 a) \text{Si}\left (3 b x^2\right )\\ \end{align*}
Mathematica [A] time = 0.175254, size = 90, normalized size = 0.99 \[ -\frac{3 b x^2 \sin (a) \text{CosIntegral}\left (b x^2\right )+3 b x^2 \sin (3 a) \text{CosIntegral}\left (3 b x^2\right )+3 b x^2 \cos (a) \text{Si}\left (b x^2\right )+3 b x^2 \cos (3 a) \text{Si}\left (3 b x^2\right )+3 \cos \left (a+b x^2\right )+\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.147, size = 162, normalized size = 1.8 \begin{align*}{\frac{3\,{{\rm e}^{-3\,ia}}\pi \,{\it csgn} \left ( b{x}^{2} \right ) b}{16}}-{\frac{3\,{{\rm e}^{-3\,ia}}{\it Si} \left ( 3\,b{x}^{2} \right ) b}{8}}+{\frac{3\,i}{16}}{{\rm e}^{-3\,ia}}{\it Ei} \left ( 1,-3\,ib{x}^{2} \right ) b+{\frac{3\,\pi \,{\it csgn} \left ( b{x}^{2} \right ){{\rm e}^{-ia}}b}{16}}-{\frac{3\,{{\rm e}^{-ia}}{\it Si} \left ( b{x}^{2} \right ) b}{8}}+{\frac{3\,i}{16}}{{\rm e}^{-ia}}{\it Ei} \left ( 1,-ib{x}^{2} \right ) b-{\frac{3\,i}{16}}{{\rm e}^{ia}}b{\it Ei} \left ( 1,-ib{x}^{2} \right ) -{\frac{3\,i}{16}}{{\rm e}^{3\,ia}}b{\it Ei} \left ( 1,-3\,ib{x}^{2} \right ) -{\frac{3\,\cos \left ( b{x}^{2}+a \right ) }{8\,{x}^{2}}}-{\frac{\cos \left ( 3\,b{x}^{2}+3\,a \right ) }{8\,{x}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.53945, size = 132, normalized size = 1.45 \begin{align*} -\frac{1}{16} \,{\left ({\left (3 i \, \Gamma \left (-1, 3 i \, b x^{2}\right ) - 3 i \, \Gamma \left (-1, -3 i \, b x^{2}\right )\right )} \cos \left (3 \, a\right ) +{\left (3 i \, \Gamma \left (-1, i \, b x^{2}\right ) - 3 i \, \Gamma \left (-1, -i \, b x^{2}\right )\right )} \cos \left (a\right ) + 3 \,{\left (\Gamma \left (-1, 3 i \, b x^{2}\right ) + \Gamma \left (-1, -3 i \, b x^{2}\right )\right )} \sin \left (3 \, a\right ) + 3 \,{\left (\Gamma \left (-1, i \, b x^{2}\right ) + \Gamma \left (-1, -i \, b x^{2}\right )\right )} \sin \left (a\right )\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.68307, size = 340, normalized size = 3.74 \begin{align*} -\frac{6 \, b x^{2} \cos \left (3 \, a\right ) \operatorname{Si}\left (3 \, b x^{2}\right ) + 6 \, b x^{2} \cos \left (a\right ) \operatorname{Si}\left (b x^{2}\right ) + 8 \, \cos \left (b x^{2} + a\right )^{3} + 3 \,{\left (b x^{2} \operatorname{Ci}\left (3 \, b x^{2}\right ) + b x^{2} \operatorname{Ci}\left (-3 \, b x^{2}\right )\right )} \sin \left (3 \, a\right ) + 3 \,{\left (b x^{2} \operatorname{Ci}\left (b x^{2}\right ) + b x^{2} \operatorname{Ci}\left (-b x^{2}\right )\right )} \sin \left (a\right )}{16 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos ^{3}{\left (a + b x^{2} \right )}}{x^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.17793, size = 250, normalized size = 2.75 \begin{align*} -\frac{3 \,{\left (b x^{2} + a\right )} b^{2} \operatorname{Ci}\left (3 \, b x^{2}\right ) \sin \left (3 \, a\right ) - 3 \, a b^{2} \operatorname{Ci}\left (3 \, b x^{2}\right ) \sin \left (3 \, a\right ) + 3 \,{\left (b x^{2} + a\right )} b^{2} \operatorname{Ci}\left (b x^{2}\right ) \sin \left (a\right ) - 3 \, a b^{2} \operatorname{Ci}\left (b x^{2}\right ) \sin \left (a\right ) + 3 \,{\left (b x^{2} + a\right )} b^{2} \cos \left (a\right ) \operatorname{Si}\left (b x^{2}\right ) - 3 \, a b^{2} \cos \left (a\right ) \operatorname{Si}\left (b x^{2}\right ) - 3 \,{\left (b x^{2} + a\right )} b^{2} \cos \left (3 \, a\right ) \operatorname{Si}\left (-3 \, b x^{2}\right ) + 3 \, a b^{2} \cos \left (3 \, a\right ) \operatorname{Si}\left (-3 \, b x^{2}\right ) + b^{2} \cos \left (3 \, b x^{2} + 3 \, a\right ) + 3 \, b^{2} \cos \left (b x^{2} + a\right )}{8 \, b^{2} x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]